<#include "../../page.ftl" />
<#list menusTable as menu>
    <#assign security=JspTaglibs["/WEB-INF/security.tld"] />
<ol class="dd-list">
    <li class="dd-item dd3-item dd-field" data-id="5">
        <div class="dd3-content">${menu.menuName!''}
            <input type="hidden" name="ids" value="${menu.id!''}"/>
            <input type="hidden" name="menuId" value="${menu.menuId!''}"/>

            <div class="controls">
                <@security.authorize ifAnyGranted="ROLE_MENU_A">
                    <a onclick="return popAddOrModify('${menu.menuId!''}');" data-toggle="tooltip" data-placement="top"
                       title="新增" data-original-title="新增">
                        <i class="fa fa-plus-square-o"></i></a>
                </@security.authorize>
                <@security.authorize ifAnyGranted="ROLE_MENU_E">
                    <a onclick="return popEditOrModify(${menu.id!''});" data-toggle="tooltip" data-placement="top"
                       title="编辑" data-original-title="编辑">
                        <i class="fa fa-pencil-square-o"></i></a>
                </@security.authorize>
                <@security.authorize ifAnyGranted="ROLE_MENU_D">
                    <a onclick="return deleteMenu(${menu.id!''},'${menu.menuId!''}');" data-toggle="tooltip"
                       data-placement="top" title="删除" data-original-title="删除">
                        <i class="fa fa-times"></i></a>
                </@security.authorize>
            </div>
        </div>
        <#if menu.childrenMenuList??>
            <#assign menusTable=menu.childrenMenuList/>
            <#include "childerMenu.ftl"/>
        </#if>
    </li>
</ol>
</#list>


